// UserApiService.java
package com.tzkyzj.tiremanagersystem.api;

import retrofit2.Call;
import retrofit2.http.*;
import java.util.List;
import java.util.Map;

public interface UserApiService {

    @GET("api/users")
    Call<List<Map<String, Object>>> getAllUsers();

    @POST("api/users")
    Call<Map<String, Object>> createUser(@Body Map<String, Object> userData);

    @PUT("api/users/{userId}")
    Call<Map<String, Object>> updateUser(@Path("userId") Long userId, @Body Map<String, Object> userData);

    @DELETE("api/users/{userId}")
    Call<Map<String, Object>> deleteUser(@Path("userId") Long userId);
}